<%@ include file="/common/taglibs.jsp"%>

<menu:useMenuDisplayer name="Velocity" config="cssHorizontalMenu.vm" permissions="rolesAdapter">
<ul id="primary-nav" class="menuList">
    <li class="pad">&nbsp;</li>
    <c:if test="${empty pageContext.request.remoteUser}"><li><a href="<c:url value="/login"/>" class="current"><fmt:message key="login.title"/></a></li></c:if>
    <menu:displayMenu name="MainMenu"/>
    <menu:displayMenu name="UserMenu"/>
    <security:authorize access="hasRole('ROLE_ADMIN')">
    	<menu:displayMenu name="AdminMenu"/>
    </security:authorize>
    <security:authorize access="hasRole('ROLE_SUPER_ADMIN')">
    	<menu:displayMenu name="SuperAdminMenu"/>
    </security:authorize>
    <security:authorize access="hasRole('ROLE_MASTER_ADMIN')">
    	<menu:displayMenu name="MasterAdminMenu"/>
    </security:authorize>
    <security:authorize access="hasRole('ROLE_MASTER_USER')">
    	<menu:displayMenu name="MasterUserMenu"/>
    </security:authorize>
    <security:authorize access="hasRole('ROLE_USER')">
    	<menu:displayMenu name="UserAdminMenu"/>
    </security:authorize>    
    <menu:displayMenu name="Logout"/>
</ul>
</menu:useMenuDisplayer>
